package com.hhd.pdf.components.functions;

import com.hhd.pdf.context.GeneratorContext;
import com.hhd.pdf.variable.VariableContext;
import lombok.Builder;
import lombok.Getter;
import lombok.Setter;
import org.dom4j.Element;

import java.util.Map;

@Setter
@Builder
@Getter
public class PdfFunctionContext {
    Element element;
    VariableContext variableContext;
    GeneratorContext generatorContext;
    String function;
    Map<String, Object> variables;

    public Object getVariable(String variableName) {
        return variables.get(variableName);
    }
}
